package com.hy.erp.inventory.pojo;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Index;
/*import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
*/
import com.hy.erp.inventory.dao.interfaces.IStockTypeDao;
import com.hy.erp.inventory.pojo.interfaces.IRoleType;
import com.hy.erp.inventory.pojo.interfaces.IStockType;
//import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.api.annotation.DaoA;
//import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.entity.AbstractPersistentEntity;
import com.hy.mydesktop.shared.persistence.domain.gxt.MyBaseModel;

/**
 * <ul>
 * <li>开发作者：汤莉</li>
 * <li>设计日期：2010-10-5；时间：下午21:28:55</li>
 * <li>字段类型：long；字段名称：serialVersionUID</li>
 * <li>设计目的：库存类型</li>
 * </ul>
 * <ul>
 * <b>修订编号：</b>
 * <li>修订日期：</li>
 * <li>修订作者：</li>
 * <li>修订原因：</li>
 * <li>修订内容：</li>
 * </ul>
 */
@Entity
@Table(name="t_stockType")
/*
@Name("stockType")
@Scope(ScopeType.SESSION)
@DaoA(IStockTypeDao.class)
*/
//public class StockType extends AbstractPersistentEntity implements  IStockType,Serializable {
public class StockType extends MyBaseModel //implements IPositonType
{
	private static final long serialVersionUID = 8711979639375728158L;

	/**
	 * 构造函数
	 */
	public StockType(){}

	
	
	//#############################################################################
	


	@Column(name="stocktypename",unique=false,nullable=false,insertable=true,updatable=true)
	@Index(name="stockTypeNameIndex")
	public String getStockTypeName() {
		return this.get(IStockType.STOCKTYPENAME);
	}

	
	//#############################################################################
	

	

	public void setStockTypeName(String stockTypeName) {
		super.set(IStockType.STOCKTYPENAME, stockTypeName);
	}
	
	@Column(name="description",unique=false,nullable=false,insertable=true,updatable=true)
	public String getDescription ( )
	{
		return this.get(IStockType.DESCRIPTION) ;
	}
	public void setDescription (
									String description )
	{
		super.set(IStockType.DESCRIPTION, description);
	}
	
}
